﻿// -------------------------------------------------------------------------
//    @FileName         :    NFTransAccLogin.h
//    @Author           :    Gao.Yi
//    @Date             :    2025-08-21
//    @Email			:    445267987@qq.com
//    @Module           :    NFTransAccLogin
//    @Desc             :
//
// -------------------------------------------------------------------------

#pragma once

#include "NFLogicCommon/NFLogicShmTypeDefines.h"
#include "NFServerComm/NFServerCommon/NFCacheDataGetTrans.h"

namespace proto_ff
{
    class tbRoleList;
}

class NFTransAccLogin : public NF_OBJECT_TEMPLATE_MACRO(NFTransAccLogin, EOT_ONLINE_TRANS_ACC_LOGIN, NFCacheDataGetTrans)
public:
    NFTransAccLogin();
    ~NFTransAccLogin() override;
    int CreateInit();
    int ResumeInit();
public:
    int StartGetRoleList(int zoneId, uint64_t playerUin, int platformType, int fromBusId, int transId);
    int GetCacheDataRes(int ullId, int iTableId, int iReason, int32_t errCode, google::protobuf::Message* pMessage) override;
    int MakeNewRoleList(proto_ff::tbRoleList &tbRoleList);
private:
    int m_fromBusId;
    int m_transId;
    int m_zoneId;
    uint64_t m_playerUin;
    int m_platformType;
};
